package com.Aspect;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class MyAspect implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        Object obj=invocation.proceed();
        log();
        return obj;
    }

    private void log() {
        System.out.println("记录日志");
    }
}
